<extend name="_layout/main" />
<block name="content">
    <div class="page-content">
        <div class="page-breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="fa fa-home"></i>
                    <a href="{:U('dashboard/index')}">系统首页</a>
                </li>
                <li>
                    <a href="javascript:;">管理中心</a>
                </li>
                <li class="active">支付方式</li>
            </ul>
        </div>
        <div class="page-body">
            <div class="row">
                <div class="col-xs-12 col-md-12">
                	<lt name="total" value="1">
                	<div class="alert alert-danger fade in">
                        <button class="close" data-dismiss="alert">
                            ×
                        </button>
                        <i class="fa-fw fa fa-times"></i>
                        <strong>提示！</strong> 当前没有任何有效的支付方式，请尽快完成设置
                    </div>
                   </lt>
                    <form method="post" id="listForm">
						<table class="table table-bordered table-hover">
							<thead>
								<tr>
									<th class="text-center" width="80">
										<label>
											<input type="checkbox" class="colored-success select-all">
											<span class="text"></span>
										</label>
									</th>
									<th class="text-center" width="80">排序</th>
									<th class="text-center" width="80">图标</th>
									<th>标题</th>
									<th class="text-center" width="250">状态</th>
									<th class="text-center" width="200">操作</th>
								</tr>
							</thead>
							<volist name="result" id="val">
								<tr>

									<td class="text-center">
										<label>
											<input type="checkbox" name="id[{$val.id}]" value="{$val.id}" class="colored-success select-item">
											<span class="text">{$val.id}</span>
										</label>
									</td>
									<td class="text-center input-group-xs" style="width: 80px;">
										<input type="text" class="form-control text-center" min="0" max="9999" maxlength="4" value="{$val.sort}" name="sort[{$val['id']}]">
									</td>
									<td class="text-center"><img height="30" src="{$val.logo}"</td>
									<td>{$val.name}</td>
									<td class="text-center"><eq name="val.status" value="1"><span class="green">启用</span><else/><span class="red">禁用</span></eq></td>
									<td class="text-center">										
										<a href="{:U('payment/edit',['id'=>$val['id']])}" class="btn btn-default btn-xs"><i class="fa  fa-edit"></i>编辑</a>										
									</td>

								</tr>
							</volist>
							<tbody>
							</tbody>
						</table>
						<div class="row DTTTFooter">
							<div class="col-sm-6">
								<div class="dataTables_info" id="simpledatatable_info" role="status" aria-live="polite">
									<div class="buttons-preview">
										<a href="javascript:void(0);" class="btn btn-default shiny" id="sort" data-action="{:U('payment/sort')}">排序</a>
									</div>
								</div>
							</div>
							<div class="col-sm-6">
								<div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
									{$page}
								</div>
							</div>
						</div>
					</form>
                </div>
            </div>
        </div>
    </div>
</block>

<block name="footer">

</block>